﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Data;

namespace my.abp.Domain.Authorization
{
	/// <summary>
	/// 数据权限扩展
	/// </summary>
	public static class DataPermissionExtensions
	{
		/// <summary>
		/// 关闭数据权限
		/// </summary>
		/// <param name="dataFilter"></param>
		/// <returns></returns>
		public static IDisposable DisablePermissionHandler(this IDataFilter dataFilter)
		{
			return dataFilter.Disable<IDataPermission>();
		}
	}
}
